package com.feng.zhihao.demo.springbatch.job.impl;

import java.util.Date;

import org.springframework.stereotype.Component;

import com.feng.zhihao.demo.springbatch.entity.BatchTaskHis;
import com.feng.zhihao.demo.springbatch.job.BusinessJob;
import com.feng.zhihao.demo.springbatch.page.Message;

@Component("testJob")
public class TestJob implements BusinessJob{

	@Override
	public Message execute(Date date, BatchTaskHis batchTaskHis) {
//		System.out.println(DateUtil.formatDateTime(date)+"\t 你好!");
		try {
			Thread.sleep(4*1000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return new Message(200, "OK");
	}

}
